home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C++ / Applications / Lookup 1.0d2 / Includes / CLookupWindow.h < prev    next >
Encoding:
Text File  |  1995-09-03  |  934 b   |  55 lines  |  [TEXT/CWIE]

  1. //
  2. //    CLookupWindow
  3. //
  4.  
  5. #if !REZ
  6.  
  7. #pragma once
  8.  
  9. #include <LWindow.h>
  10.  
  11. class CEntry;
  12. class CLookupDocument;
  13. class CEntryList;
  14.  
  15. class CLookupWindow : public LWindow, public LListener
  16. {
  17. public:
  18.     static void        Register();
  19.  
  20.     virtual void    ListenToMessage(MessageT inMessage, void *);
  21.  
  22. private:
  23.  
  24.     enum {
  25.         kClassID = 'LWIN'
  26.     };
  27.     static CLookupWindow * CreateFromStream(LStream *inStream);
  28.  
  29.     CEntryList *        mList;
  30.     CLookupDocument *    mDocument;
  31.     LEditField *        mField1;
  32.     LEditField *        mField2;
  33.     LEditField *        mField3;
  34.     LEditField *        mField4;
  35.     LControl *            mChangeButton;
  36.     
  37.     CLookupWindow(LStream *inStream);
  38.  
  39.     virtual void    FinishCreateSelf();
  40.     
  41.     void SetFieldData(const CEntry & record);
  42.     void GetFieldData(CEntry &);
  43. };
  44.  
  45. #endif
  46.  
  47. #define kListID            'LIST'
  48. #define kScrollerID        'SCRL'
  49. #define kField1ID        'NAME'
  50. #define kField2ID        'PHN1'
  51. #define kField3ID        'PHN2'
  52. #define kField4ID        'MAIL'
  53. #define kNewButtonID    'NEWb'
  54. #define kChangeButtonID    'CHGb'
  55.